package cn.yinyu.queue.module.ecg.service.queue;

import lombok.Data;
import org.jetbrains.annotations.NotNull;

import java.util.concurrent.atomic.AtomicInteger;

@Data
public class BedQueueBO implements Comparable<BedQueueBO> {
    String bedNo;
    Long roomId;
    String roomName;
    AtomicInteger queueNum = new AtomicInteger(0);
    Integer maxQueueNum;
    Integer status;
    Integer[] checkTypes;
    Integer opType;

    @Override
    public int compareTo(@NotNull BedQueueBO o) {
        return Integer.compare(this.queueNum.get(), o.queueNum.get());
    }
}
